
package me.zhengjie.business.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

/**
* @website https://el-admin.vip
* @description /
* @author lyl
* @date 2023-11-02
**/
@Entity
@Data
@Table(name="BIS_QY_ROW")
public class BisQyRow implements Serializable {

    @Id
    @Column(name = "BIS_QYROW_ID")
    @ApiModelProperty(value = "主键ID")
    private String bisQyRowId;

    @Column(name = "BIS_QY_PID")
    @ApiModelProperty(value = "父ID")
    private String bisQyPid;

    @Column(name = "BIS_QY_NAME")
    @ApiModelProperty(value = "区域街道名称")
    private String bisQyName;

    @Column(name = "LRR")
    @ApiModelProperty(value = "录入人")
    private Long lrr;

    @Column(name = "LRRXM")
    @ApiModelProperty(value = "录入人姓名")
    private String lrrxm;

    @Column(name = "LRBM")
    @ApiModelProperty(value = "录入人部门")
    private Long lrbm;

    @Column(name = "LRBMMC")
    @ApiModelProperty(value = "录入人部门名称")
    private String lrbmmc;

    @Column(name = "LRSJ")
    @ApiModelProperty(value = "录入时间")
    private Timestamp lrsj;

    @Column(name = "GXR")
    @ApiModelProperty(value = "更新人")
    private Long gxr;

    @Column(name = "GXRXM")
    @ApiModelProperty(value = "更新人姓名")
    private String gxrxm;

    @Column(name = "GXBM")
    @ApiModelProperty(value = "更新人部门")
    private Long gxbm;

    @Column(name = "GXBMMC")
    @ApiModelProperty(value = "更新人部门名称")
    private String gxbmmc;

    @Column(name = "GXSJ")
    @ApiModelProperty(value = "更新时间")
    private Timestamp gxsj;

    @Column(name = "SFYX")
    @ApiModelProperty(value = "是否有效")
    private String sfyx;

    @Column(name = "BZ")
    @ApiModelProperty(value = "备注")
    private String bz;

    public void copy(BisQyRow source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}